<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>修改用户信息</title>
	<script type="text/javascript">
	<!--
	$(function(){
		$("#sysUserFrom").validate({
			rules:{
				userName:{
					required:true
				},
				repassword:{
					equalTo:"#password"
				},
				email:{
					required:true,
					email: true
				},
				mobileNum:{
					isMobile:true
				},
				loginName:{
					required:true
				}
			},
			messages:{
				repassword:{
					equalTo:"密码不一致"
				}
			},
			errorClass: "help-inline",
			errorElement: "span",
			highlight:function(element, errorClass, validClass) {
				$(element).parents('.control-group').addClass('error');
			},
			unhighlight: function(element, errorClass, validClass) {
				$(element).parents('.control-group').removeClass('error');
				$(element).parents('.control-group').addClass('success');
			}
		});
		
	});
	//-->
	</script>
</head>
<body>
	<div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div class="span12"><a href="${pageContext.request.contextPath }/sysuser/querySysUserPage.do" class="btn btn-primary">返回</a></div>
    </div>
    <div class="row-fluid">
	    <div class="span12">
	        <div class="widget-box">
	          <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
	            <h5>修改用户</h5>
	          </div>
	          <div class="widget-content nopadding">
	            <form class="form-horizontal" method="post" action="${pageContext.request.contextPath }/sysuser/updateSysUser.do" id="sysUserFrom" novalidate="novalidate">
	            <input type="hidden" name="userId" value="${sysUser.userId }">
	              <div class="control-group">
	                <label class="control-label" for="userName">姓名</label>
	                <div class="controls">
	                  <input type="text" id="userName" name="userName" value="${sysUser.userName }" placeholder="姓名">
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">登录名</label>
	                <div class="controls">
	                  <input type="text" name="loginName" disabled="disabled" value="${sysUser.loginName }">
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label" for="password">密码</label>
	                <div class="controls">
	                  <input type="password" id="password" name="password" value="" placeholder="密码">
	                  <span class="text-warning">未填空将不做修改</span>
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label" for="repassword">确认密码</label>
	                <div class="controls">
	                  <input type="password" id="repassword" name="repassword" value="" placeholder="确认密码">
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label" for="email">Email</label>
	                <div class="controls">
	                  <input type="text" id="email" name="email" value="${sysUser.email }" placeholder="Email">
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label" for="mobileNum">手机号码</label>
	                <div class="controls">
	                  <input type="text" id="mobileNum" name="mobileNum" value="${sysUser.mobileNum }" placeholder="手机号码">
	                </div>
	              </div>
	              <div class="form-actions">
	                <input type="submit" value="提交" class="btn btn-success">
	              </div>
	            </form>
	          </div>
	        </div>
	      </div>
      </div>
    </div>
</body>
</html>